home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
text
/
tex
/
rail.lha
/
makefile.dmake
< prev
next >
Wrap
Makefile
|
1992-09-23
|
1KB
|
63 lines
#
# @(#) Makefile - makefile for Rail package
#
# 07-Feb-1991 L. Rooijakkers added 'tar' target
#
BINDIR=$(HOME)/rail
TEXDIR=$(HOME)/rail
MANDIR=$(HOME)/rail
MANSUFFIX=l
OBJS=rail.o gram.o lex.o
CFLAGS=-DYYDEBUG -v
all: rail
install: rail rail.sty rail.man
$(MV) rail $(BINDIR)
$(MV) rail.sty $(TEXDIR)
$(MV) rail.man $(MANDIR)/man$(MANSUFFIX)/rail.$(MANSUFFIX)
clean:
$(RM) -f $(OBJS) rail gram.[ch] lex.c y.tab.[ch] y.output a.out core
$(RM) -f *.log *.aux *.rai *.rao *.dvi rail.txt SHAR.* TAR MANIFEST.BAK
lint: rail.c gram.c lex.c gram.h
lint rail.c gram.c lex.c
shar:
makekit -m -n SHAR.
tar:
tar cvf TAR `sed -n '3,$$s/^[ ]*\([^ ]*\).*$$/\1/p' MANIFEST`
doc: rail.dvi rail.txt
$(OBJS): rail.h
rail.o lex.o: gram.h
rail.o: patchlevel.h
gram.c gram.h: y.tab.c y.tab.h
$(MV) y.tab.c gram.c
$(MV) y.tab.h gram.h
y.tab.c y.tab.h y.output: gram.y
$(YACC) $(YFLAGS) -dv gram.y
rail: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o rail
rail.rai: rail.tex
latex rail
rail.rao: rail rail.rai
rail rail
rail.dvi: rail.rao rail.tex
latex rail
rail.txt: rail.man
nroff -man rail.man >rail.txt